package org.codegallery.jpagal.repository;

import java.util.List;

import org.codegallery.jpagal.entity.Account;
import org.codegallery.jpagal.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface AccountRepository extends JpaRepository<Account, Long> {

  List<Account> findByCustomer(Customer customer);
}